/**
 * 全局常量
 */
const pageNum = 1; // 分页参数，默认当前页为1
const pageSize = 10; // 分页参数，每页显示10条记录

function handlerQueryParam (param) {
  let res = {};
  for (let k in param) {
    if (param[k]) {
      res[k] = param[k];
    }
  }

  return res;
}

function clearObject (param) {
  for (let k in param) {
    param[k] = '';
  }
}

const dictKey = {
  status: 'sys_status',
  gender: 'sys_gender',
  state: 'gen_state'
}

export default {
  pageNum,
  pageSize,
  handlerQueryParam,
  clearObject,
  dictKey
}
